<?php if(!count($result)): ?>
<br />
<p>Không tìm thấy sân</p>
<?php else: ?>
<br />
<h4>Kết quả ngày <?php echo date('d-m-Y',strtotime(date('Y-m-d') ." +$index day")) ?> :</h4>
<?php foreach($result as $item): ?>
    <a class="change_stadium" title="<?php echo $item ?>" href="javascript:void(0);">Sân <?php echo $item ?></a>    
<?php endforeach; ?>
<script type="text/javascript">
    $('.change_stadium').click(function(){
       $('#stadium').val($(this).attr('title')).change();
    });
</script>
<?php endif; ?>